const pageAction = [
  {
    id: 'pageServer.go',
    name: '切换路由(上一个/下一个)',
    type: 'page',
    exec: (app, param) => {
      let routeParam = 0
      ;(param.key == 'left' || param.key == 'up') && (routeParam = -1)
      ;(param.key == 'right' || param.key == 'down') && (routeParam = 1)
      app.pageServer.go(routeParam)
    }
  },
  {
    id: 'pageServer.goTo',
    name: '切换路由(第几个)',
    type: 'page',
    exec: (app, param) => {
      app.pageServer.goTo(param[0] - 0)
    }
  },
  {
    id: 'pageServer.goByNameText',
    name: '根据路由显示名称切换路由',
    type: 'page',
    exec: (app, param) => {
      let nameText=param[1]
      app.pageServer.goByNameText(nameText)
    }
  }
]
export default pageAction
